package com.taotao.springbootApi.result;

import lombok.Data;


/**
 *对数据结果的统一封装
 */

@Data
public class Result {
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 结果集
     */
    private Object data;
    /**
     * 消息
     */
    private String message;


    public Result(){

    }

    public Result(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }
    public Result(Integer code, Object data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }


}
